<html> <!-- This code lets the user edit all the panic messages on page -->
<head><title>Edit Panic Messages</title>
<link rel="stylesheet" type="text/css" href="../css/Default.css" />
<Script language="javascript" src="../data/password.js"></script>
<Script language="javascript" src="../exec/login.js"></script>
<noscript>
location.href="../noscript.html";
</noscript>
<SCRIPT LANGUAGE="JavaScript">
	window.onload = redir(0);
//name of cookie: 'eomdmf'
</SCRIPT>
</head>
<body style="font-family: arial">
<br>
<center><h1>Edit Panic Messages</h1></center>
<br>

<center><p style="font-family: Arial; font-size:20px;">Press 'Submit' to save any changes made to panic messages.</p></center>
<!--<option value="0">Select an emergency...</option>
	<option value="1">Fire</option>
	<option value="2">Lock down</option>
	<option value="3">Secure School</option>
	<option value="4">Custom 1</option>
	<option value="5">Custom 2</option>-->
<form method="POST" action="Replace_Panic.php"> 
<center>
<b>Fire:</b><br>
<textarea name="Panic_1" id="Panic_1" rows="5" cols="90" style="color:000000;border: 2px solid black; font-family: Arial">
<?php
$fh = fopen("msg1.txt", "r");
if($fh != null){
	while(!feof($fh))
	{
		echo fgets($fh);
	}
}
fclose($fh);
?>
</textarea>
<br><br><b>Lock Down:</b><br>
<textarea name="Panic_2" id="Panic_2" rows="5" cols="90" style="color:000000;border: 2px solid black; font-family: Arial">
<?php
$fh = fopen("msg2.txt", "r");
if($fh != null){
	while(!feof($fh))
	{
		echo fgets($fh);
	}
}
fclose($fh);
?>
</textarea>
<br><br><b>Secure School:</b><br>
<textarea name="Panic_3" id="Panic_3" rows="5" cols="90" style="color:000000;border: 2px solid black; font-family: Arial">
<?php
$fh = fopen("msg3.txt", "r");
if($fh != null){
	while(!feof($fh))
	{
		echo fgets($fh);
	}
}
fclose($fh);
?>
</textarea>
<br><br><b>Custom 1:</b><br>
<textarea name="Panic_4" id="Panic_4" rows="5" cols="90" style="color:000000;border: 2px solid black; font-family: Arial">
<?php
$fh = fopen("msg4.txt", "r");
if($fh != null){
	while(!feof($fh))
	{
		echo fgets($fh);
	}
}
fclose($fh);
?>
</textarea>
<br><br><b>Custom 2:</b><br>
<textarea name="Panic_5" id="Panic_5" rows="5" cols="90" style="color:000000;border: 2px solid black; font-family: Arial">
<?php
$fh = fopen("msg5.txt", "r");
if($fh != null){
	while(!feof($fh))
	{
		echo fgets($fh);
	}
}
fclose($fh);
?>
</textarea>
</center>
<center><input id="subbut" type="submit" value="Submit"></center>
</form>
<center>
<FORM METHOD="LINK" ACTION="../index.html">
<INPUT TYPE="submit" VALUE="Home Page">
</FORM>
<FORM METHOD="LINK" ACTION="../PanicMenu.html">
<INPUT TYPE="submit" VALUE="Return to Panic Menu">
</FORM>
<FORM METHOD="LINK" ACTION="../LoggedIn.php">
<INPUT TYPE="submit" VALUE="Return to Main Menu">
</FORM>
</center>
</body>
</html>

